home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
presto
/
prest1_0.lha
/
src
/
makelinks
< prev
next >
Wrap
Text File
|
1991-12-11
|
614b
|
34 lines
#! /bin/sh
# This script sets up whole directories of symbolic links
# so that we can build target-specific versions of Presto.
usage="<target>"
if [ $# -lt 1 ] ; then
echo "usage: `basename $0` $usage"
exit 1
fi
if [ ! -f Makefile.$1 ] ; then
echo "no makefile for target \"$1\""
exit 1
fi
here=`pwd`
mkdir $1 $1/Base $1/Base_debug > /dev/null 2>&1
# Now go into the source directory, and create all
# the links.
cd src
ln -s $here/Makefile.$1 ../$1/Makefile
for file in *.c *.h *.s
do
ln -s $here/$file ../$1/Base/$file
ln -s $here/$file ../$1/Base_debug/$file
echo $file
done
exit 0